package cn.ekgc.common.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Getter
@Setter
@Component
@ToString
public class Prescription {

  private long id;
  private long registryId;
  private long patientId;
  private long payStatus;
  private long isFetchMedicine;
  private double fee;
  private double payFee;
  private double medicareFee;
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private LocalDateTime payTime;
  private LocalDateTime createdTime;
  private LocalDateTime updatedTime;


  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public long getRegistryId() {
    return registryId;
  }

  public void setRegistryId(long registryId) {
    this.registryId = registryId;
  }


  public long getPatientId() {
    return patientId;
  }

  public void setPatientId(long patientId) {
    this.patientId = patientId;
  }


  public long getPayStatus() {
    return payStatus;
  }

  public void setPayStatus(long payStatus) {
    this.payStatus = payStatus;
  }


  public long getIsFetchMedicine() {
    return isFetchMedicine;
  }

  public void setIsFetchMedicine(long isFetchMedicine) {
    this.isFetchMedicine = isFetchMedicine;
  }


  public double getFee() {
    return fee;
  }

  public void setFee(double fee) {
    this.fee = fee;
  }


  public double getPayFee() {
    return payFee;
  }

  public void setPayFee(double payFee) {
    this.payFee = payFee;
  }


  public double getMedicareFee() {
    return medicareFee;
  }

  public void setMedicareFee(double medicareFee) {
    this.medicareFee = medicareFee;
  }


  public LocalDateTime getPayTime() {
    return payTime;
  }

  public void setPayTime(LocalDateTime payTime) {
    this.payTime = payTime;
  }


  public LocalDateTime getCreatedTime() {
    return createdTime;
  }

  public void setCreatedTime(LocalDateTime createdTime) {
    this.createdTime = createdTime;
  }


  public LocalDateTime getUpdatedTime() {
    return updatedTime;
  }

  public void setUpdatedTime(LocalDateTime updatedTime) {
    this.updatedTime = updatedTime;
  }

}
